<?php

namespace App\Http\Requests\Api\V1_6_6;

use Illuminate\Foundation\Http\FormRequest;

class IdentityImageRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'idcard_pic_front' => 'required',
            'idcard_pic_back' => 'required',
            'bankcard_pic_front' => 'required',
            'idcard_pic_middle' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'idcard_pic_front.required'=>'请上传身份证正面照',
            'idcard_pic_back.required'=>'请上传身份证反面照不能为空',
            'bankcard_pic_front.required'=>'请上传银行卡正面照不能为空',
            'idcard_pic_middle.required'=>'请上传手持身份证照不能为空',
        ];
    }
}
